package com.liyuan.yiqixing.dao;

import com.liyuan.yiqixing.model.Item;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface RecruitDao {
    @Insert("insert into item(user,location,introduction,startTime,endTime,numberOfPeople,requirement,workContent,additionalInfo,hostelName,imgUrl)" +
            "values(#{user.id},#{location},#{introduction},#{startTime},#{endTime},#{numberOfPeople},#{requirement},#{workContent},#{additionalInfo},#{hostelName},#{imgUrl})")
    void insertItem(Item item);
}
